package com.aboo.dao.impl;

import java.util.List;

import com.aboo.dao.BaseSqlMapDao;
import com.aboo.dao.RRoleMenuDao;
import com.aboo.po.Page;
import com.aboo.po.RRoleMenuPO;
import com.aboo.pub.constant.Constant;

public class RRoleMenuDaoImpl extends BaseSqlMapDao implements RRoleMenuDao {

	public Integer save(RRoleMenuPO po) throws Exception {
		return (Integer) getSmcTemplate().insert("RRoleMenu.insertRRoleMenu", po);
	}

	public void delete(Integer id) throws Exception {
		RRoleMenuPO tmp = new RRoleMenuPO();
		tmp.setId(id);
		tmp.setInUse(Constant.INUSE_NO);
		getSmcTemplate().update("RRoleMenu.updateRRoleMenu", tmp);
	}

	@Deprecated
	public RRoleMenuPO find(RRoleMenuPO po) throws Exception {
		return null;
	}

	@Deprecated
	public Integer findCount(RRoleMenuPO po) throws Exception {
		return null;
	}

	@Deprecated
	public List<RRoleMenuPO> findList(RRoleMenuPO po, Page page)
			throws Exception {
		return null;
	}

	@Deprecated
	public void update(RRoleMenuPO po) throws Exception {
	}

	public void delete(RRoleMenuPO param) throws Exception {
		getSmcTemplate().delete("RRoleMenu.deleteRRoleMenu", param);
	}

}
